/*
 * Created by: 	Zhaoningbo
 * at:			2011-8-30 - 上午09:02:37
 * blog:		(http://zhaoningbo.iteye.com/)
 */
package com.gc.action.exception;

import java.io.Serializable;
import java.lang.reflect.Method;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.aop.ThrowsAdvice;

public class ExceptionHandler implements Serializable, ThrowsAdvice {

    private static final long serialVersionUID = 5968023059092723252L;
    private Log log = LogFactory.getLog(this.getClass().getName());

    public void afterThrowing(Method method, Object[] args, Object target,
            Throwable subclass) throws Throwable {
        log.info("执行" + method.getName() + "时，发生异常——" + subclass);
    }
}
